#ifndef __DS18B20_H_
#define __DS18B20_H_

#include <reg52.h>
#define uchar unsigned char
#define uint  unsigned int


sbit DSPORT=P3^7;
extern uchar HZ[];
extern uchar HZ1[];
extern uchar HZ2[];
extern uchar HZ3[];
extern uchar code table_[];


void Delay1ms(unsigned int );
unsigned char Ds18b20Init();
void Ds18b20WriteByte(unsigned char com);
unsigned char Ds18b20ReadByte();
void  Ds18b20ChangTemp();
void  Ds18b20ReadTempCom();
//int Ds18b20ReadTemp();
int Ds18b20ReadTemp();


#endif
